package user.factory;

import user.AdminUser;
import user.User;

public class AdminUserFactory implements IUserFactory{

    @Override
    public User createUser(String name, int userID) {
        try {
            return new AdminUser(name,userID);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
